package com.wondersgroup.fjzlpt.yyzyzx.controller.view.yyzygl;

import com.wondersgroup.fjzlpt.yyzyzx.util.ControllerUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;

/**
 * 床位设置
 * <p>
 * <p>
 * Created by sanma on 2017/8/2.
 */
@Controller
@RequestMapping("/cwsz")
public class CwszController {

    /**
     * 床位设置列表查询页面
     * @param request
     * @return
     */
    @RequestMapping("/index.html")
    public String index(HttpServletRequest request) {
        JSONObject requestData = ControllerUtils.getRequestData(request);
        request.setAttribute("requestData", requestData);
        return "yyzygl/yysz/cwsz/index";
    }
    
    /**
     * 床位设置新增与修改页面
     * @param request
     * @return
     */
    @RequestMapping("/manager.html")
    public String manager(HttpServletRequest request) {
    	JSONObject requestData = ControllerUtils.getRequestData(request);
        request.setAttribute("requestData", requestData);
        return "yyzygl/yysz/cwsz/manager";
    }
    
    /**
     * 预约优先级类别
     * @param request
     * @return
     */
    @RequestMapping("/yyyxjlb.html")
    public String yyyxjlb(HttpServletRequest request) {
        return "yyzygl/yysz/cwsz/yyyxjlb";
    }
}
